package com.nuonuo.refresh.controller;

import com.nuonuo.refresh.service.RefreshByDrsValueService;
import com.nuonuo.refresh.service.RefreshByValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duan
 * @version 1.0
 * @date 2023/1/16 9:29
 */
@RestController
@RequestMapping(value = "refresh/service")
public class RefreshServiceController {

    @Autowired
    private RefreshByDrsValueService refreshByDrsValueService;

    @Autowired
    private RefreshByValueService refreshByValueService;

    @GetMapping(value = "getAppCode")
    public String getAppCode() {
        return  this + ", " + refreshByDrsValueService.getAppCode();
    }


    @GetMapping(value = "getAppKey")
    public String getAppKey() {
        return this + ", " + refreshByValueService.getAppKey();
    }
}
